package com.sky.service.impl;

import com.sky.mapper.SetmealDishMapper;
import com.sky.service.SetmealDishService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SetmealDishServiceImpl implements SetmealDishService {
    @Autowired
    private SetmealDishMapper setmealDishMapper;

    /**
     * 根据菜品id获取套餐使用菜品的数量
     * @param ids
     * @return
     */
    @Override
    public Integer getSetmealCountByIds(List<Integer> ids) {
        Integer setmealCount = setmealDishMapper.getSetmealCountByIds(ids);
        return setmealCount;
    }
}
